Advanced Architecting on AWS
Direct Connect β’ VPN β’ Transit Gateway β’ Hybrid DNS
| Feature | Details |
|---|---|
| Connection Types | Dedicated (1/10/100 Gbps) or Hosted (50 Mbpsβ10 Gbps) |
| Virtual Interfaces | Private VIF (VPC), Public VIF (AWS public services), Transit VIF (TGW) |
| Encryption | NOT encrypted by default β use MACsec (Layer 2) or VPN over DX |
| Latency | Consistent, low-latency (vs. internet-based VPN) |
| Resiliency | Single DX = single point of failure. Use redundant connections. |
Hub-and-Spoke
Central router connecting VPCs, VPNs, and Direct Connect. Eliminates full-mesh peering.
Route Tables
Multiple route tables for network segmentation (prod/dev isolation with shared services)
Attachments
VPC, VPN, DX Gateway, Peering, Connect (SD-WAN). Up to 5,000 attachments.
Bandwidth
50 Gbps per VPC attachment. Burst to 100 Gbps. ECMP support for VPN aggregation.
| Pattern | Resilience | Cost |
|---|---|---|
| Single DX + VPN backup | Medium β failover to VPN if DX fails | $$ |
| Dual DX (same location) | High β survives single connection failure | $$$ |
| Dual DX (different locations) | Maximum β survives entire facility failure | $$$$ |
| DX + DX (different locations) + VPN | Maximum+ β triple redundancy | $$$$$ |
# Create a Transit Gateway aws ec2 create-transit-gateway --description "Central-TGW" \ --options "AmazonSideAsn=64512,AutoAcceptSharedAttachments=enable" # Attach a VPC to Transit Gateway aws ec2 create-transit-gateway-vpc-attachment \ --transit-gateway-id tgw-xxxx --vpc-id vpc-xxxx \ --subnet-ids subnet-xxxx subnet-yyyy # Create VPN connection on TGW aws ec2 create-vpn-connection --type ipsec.1 \ --customer-gateway-id cgw-xxxx \ --transit-gateway-id tgw-xxxx
Q1: A company requires consistent sub-10ms latency to AWS with 5 Gbps throughput. Which connectivity option is most appropriate?
A) Site-to-Site VPN B) AWS Direct Connect (Dedicated) C) Client VPN D) Internet with Global Accelerator
Q2: What is the purpose of a Transit Virtual Interface (Transit VIF)?
A) Connect to a single VPC B) Access AWS public services C) Connect DX to a Transit Gateway D) Encrypt DX traffic
Direct Connect
Dedicated/Hosted. Private/Public/Transit VIFs. Not encrypted by default. Use MACsec or VPN overlay.
Site-to-Site VPN
IPsec, 2 tunnels, ~1.25 Gbps/tunnel. Quick to set up. Variable latency. Accelerated option available.
Transit Gateway
Hub-and-spoke. Multiple route tables. 5000 attachments. Central routing for VPCs + VPN + DX.
Hybrid DNS
Route 53 Resolver: Inbound (on-premβAWS), Outbound (AWSβon-prem). Share rules via RAM.